home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global x, y, r, theta, AnsW
- set the floatPrecision to 5
- set y to random(200) + 3
- set x to integer(200) + 3
- set r to float(sqrt(float((x * x) + (y * y))))
- set temp to float(y) / float(r)
- set theta to float(atan(float(y) / float(x)))
- set AnsW to float(tan(theta))
- set the floatPrecision to 3
- put temp & " ))" into field "Question"
- put theta & " )" into field "Theta2"
- set the floatPrecision to 2
- put temp & ")=" & theta & " rad. =" & theta * 180.0 / PI & " deg." into field "Theta1"
- put AnsW into field "Answer2"
- put " " into field "Answer"
- set the textSize of field "Answer" to 32
- set the textSize of field "Answer2" to 32
- set the textSize of field "Theta" to 32
- set the textSize of field "Question" to 32
- set the textStyle of field "Answer" to "bold"
- set the textStyle of field "Answer2" to "bold"
- set the textStyle of field "Question" to "bold"
- set the textStyle of field "Theta" to "bold"
- end
-